package cn.iocoder.yudao.module.design.controller.admin.flow.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Tag(name =  "管理后台 - 流程信息 Excel 导出 Request VO", description = "参数和 FlowPageReqVO 是一致的")
@Data
public class FlowExportReqVO {

    @Schema(description = "房屋id")
    private Long houseId;

    @Schema(description = "设计人id")
    private Long designerId;

    @Schema(description = "流程名称")
    private String flowName;

    @Schema(description = "是否是主流程,0-主流程，1-子流程--子流程由前置任务id")
    private String isMainCd;

    @Schema(description = "归属的前置任务id")
    private Long preId;

    @Schema(description = "后置任务ids")
    private Long nextIds;

    @Schema(description = "实施前置ids")
    private String mustIds;

    @Schema(description = "任务状态,0-新建，1-就绪，2-进行中，3-挂起，4-实施完成")
    private String statusCd;

    @Schema(description = "流程费用")
    private Long cost;

    @Schema(description = "图片id")
    private Long picId;

    @Schema(description = "开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date[] startTime;

    @Schema(description = "完成时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date[] finishTime;

    @Schema(description = "流程描述")
    private String remark;

}
